package com.example.feign;

import com.example.entity.TShopUser;
import com.example.feign.fallback.UserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user",fallback = UserFeignFallback.class)
public interface UserFeignApi {
    @RequestMapping("/user/get/{id}")
    TShopUser get(@PathVariable("id") Long id);
}
